import { createApp } from 'vue';
import App from './App.vue';
import './style.css';
import { createGlowApp } from './glowApp';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import 'element-plus/dist/index.css';

//屏蔽浏览器默认右键菜单
document.body.addEventListener('contextmenu', e => e.preventDefault());

(async () => {
    await createGlowApp();//创建3D应用提前到vue之前
    let vueApp = createApp(App);
    vueApp.use(ElementPlus, { locale: zhCn });
    vueApp.mount('#app');
})();
